package com.attendance.chdingtask.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Seven
 * @创建人 Mr.Bu
 * @创建时间 $
 * @描述
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Data
@Table(name="data_column")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
@ApiModel(description = "打卡记录表")
@EntityListeners(AuditingEntityListener.class)
public class DingColumn implements Serializable {
    private static final long serialVersionUID = -4501916279459425726L;
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键")
    private Long zId;
    /**
     * 消息来源
     */
    @ApiModelProperty(value = "列值")
    private String alias;

    private Long expressionId;
    /**
     * 短信消息体
     */
    @ApiModelProperty(value="名称")
    private String name;
    private Long status;
    private Long subType;
    private Long type;
    private Long id;
}
